package com.xmcc.service;

import com.xmcc.dto.SysRoleDto;
import com.xmcc.dto.SysRoleUserDto;
import com.xmcc.pojo.SysLogWithBLOBs;
import com.xmcc.pojo.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleService {
    List<SysRole> selectAllRole();

    void insert(SysRoleDto sysRoleDto);

    void update(SysRoleDto sysRoleDto);

    SysRoleUserDto usersList(@Param("roleId") Integer roleId);

    void changeAcls(Integer roleId, List<Integer> aclIds);

    void changeUsers(Integer roleId, List<Integer> userIds);

    void recover(SysLogWithBLOBs sysLogWithBLOBs);
}
